<?php

namespace App\Modules\Doctor\Services;


use  App\Modules\Doctor\Models\Doctor;

class DoctorService
{
    public static function getList($data=[]) {
        return Doctor::getList($data);
    }


    public static function details($field,$id){
        return Doctor::details($field,$id);
    }


    public static function addDoctor($data=[]){
        return Doctor::addDoctor($data);
    }

    public static function updateDoctor($data){
        return Doctor::updateDoctor($data);
    }

    public static function findByAdminUserId($id) {
        return Doctor::where('admin_user_id',$id)->first();
    }
}